if (priv->magnifier_popover)
gtk_widget_hide (priv->magnifier_popover);
+ /* Check whether the drag was cancelled rather than finished */
+ if (!gtk_gesture_handles_sequence (GTK_GESTURE (gesture), sequence))
+ {
+ gtk_entry_selection_bubble_popup_unset (entry);
+ return;
+ }
+
event = gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence);
source = gdk_event_get_source_device (event);
is_touchscreen = (test_touchscreen ||
else if (is_touchscreen)
gtk_entry_selection_bubble_popup_set (entry);
- /* Check whether the drag was cancelled rather than finished */
- if (!gtk_gesture_handles_sequence (GTK_GESTURE (gesture), sequence))
- return;
-
if (in_drag)
{
gint tmp_pos = gtk_entry_find_position (entry, priv->drag_start_x);